package com.java.inventory.common.exception;


import com.java.inventory.common.enums.ExceptionEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;


@AllArgsConstructor
@NoArgsConstructor
@Getter
public class BizException extends RuntimeException{

    private ExceptionEnum exceptionEnum;

    @Override
    public String getMessage() {
        return exceptionEnum.getMsg();
    }
}
